<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>留言板</title>
    <meta name="keywords" content="个人博客模板,博客模板,响应式"/>
    <meta name="description" content="个人博客模板"/>
    <link href="css/base.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
    <link href="css/media.css" rel="stylesheet">
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
    <!--[if lt IE 9]>
    <script src="js/modernizr.js"></script>
    <![endif]-->
</head>
<body>
<div class="ibody">
    <?php include "header.php"; ?>

    <article>
        <h2 class="about_h">您现在的位置是：<a href="index.php">首页</a>><a href="#">留言板</a></h2>
        <div class="whitebg">
<?php
require_once "admin/config.php";
$sql = "select * from about where id =2";
$rst = mysqli_query($con,$sql);
$row = mysqli_fetch_assoc($rst);
?>
            <div class="post-content" style=" position:relative; line-height:24px; margin-top:3px; word-wrap:break-word; word-break:break-all
">
                <p></p>
                <p><strong><?php echo $row['title'];?></strong></p>
                <?php echo $row['content'];?>
                <p></p>
            </div>
        </div>
        <div class="whitebg">
            <b>留言列表</b>
            <?php
            $sql1 = "select * from liuyan order by id desc";
            $rst1 = mysqli_query($con,$sql1);
            while($row = mysqli_fetch_assoc($rst1)){
                if($row['flag']==1){
            ?>
            <div class="ds-comment-body" style="margin-top: 20px">
                <div style="float: left;margin-right: 20px;" >
                    <img src="http://q.qlogo.cn/qqapp/100229475/72B847716A279CF72D87F04FE2112D80/100" alt="phpmaster" width="50" height="50">
                </div>
                    <p ><?php echo "游客".$row['time'];?></p>
                <p><?php echo $row['content'];?></p>
                <div class="ds-comment-footer ds-comment-actions">
                    <span ><?php echo date("Y-m-d H:i:s",$row[time]);?></span></div>
        </div>
            <hr>
            <?php } }?>

</div>
        <div class="whitebg">
            <b>发表留言</b>
            <form action="liuyan_action.php" method = "post">
                <textarea name="content" id="" cols="100" rows="10">
                </textarea>
                <div style="float: right">
                    <input type="button" value="发布" size="10">
                </div>

            </form>
        </div>
    </article>


    <aside>
        <div class="ph_news">
            <h2>
                <p>点击排行</p>
            </h2>
            <div class="whitebg">
                <ul class="ph_n">
                    <li><span class="num1">1</span><a href="/">有一种思念，是淡淡的幸福,一个心情一行文字</a></li>
                    <li><span class="num2">2</span><a href="/">励志人生-要做一个潇洒的女人</a></li>
                    <li><span class="num3">3</span><a href="/">女孩都有浪漫的小情怀――浪漫的求婚词</a></li>
                    <li><span>4</span><a href="/">Green绿色小清新的夏天-个人博客模板</a></li>
                    <li><span>5</span><a href="/">女生清新个人博客网站模板</a></li>
                    <li><span>6</span><a href="/">Wedding-婚礼主题、情人节网站模板</a></li>
                    <li><span>7</span><a href="/">Column 三栏布局 个人网站模板</a></li>
                    <li><span>8</span><a href="/">时间煮雨-个人网站模板</a></li>
                    <li><span>9</span><a href="/">花气袭人是酒香―个人网站模板</a></li>
                </ul>
            </div>
            <h2>
                <p>最新评论</p>
            </h2>
            <div class="whitebg">
                <ul class="pl_n">
                    <dl>
                        <dt><img src="images/s8.jpg"></dt>
                        <dt></dt>
                        <dd>DanceSmile
                            <time>49分钟前</time>
                        </dd>
                        <dd><a href="/">文章非常详细，我很喜欢.前端的工程师很少，我记得几年前yahoo花高薪招聘前端也招不到</a></dd>
                    </dl>
                    <dl>
                        <dt><img src="images/s7.jpg"></dt>
                        <dt></dt>
                        <dd>yisa
                            <time>2小时前</time>
                        </dd>
                        <dd><a href="/">我手机里面也有这样一个号码存在</a></dd>
                    </dl>
                    <dl>
                        <dt><img src="images/s6.jpg"></dt>
                        <dt></dt>
                        <dd>小林博客
                            <time>8月7日</time>
                        </dd>
                        <dd><a href="/">博客色彩丰富，很是好看</a></dd>
                    </dl>
                    <dl>
                        <dt><img src="images/003.jpg"></dt>
                        <dt></dt>
                        <dd>DanceSmile
                            <time>49分钟前</time>
                        </dd>
                        <dd><a href="/">文章非常详细，我很喜欢.前端的工程师很少，我记得几年前yahoo花高薪招聘前端也招不到</a></dd>
                    </dl>
                    <dl>
                        <dt><img src="images/002.jpg"></dt>
                        <dt></dt>
                        <dd>yisa
                            <time>2小时前</time>
                        </dd>
                        <dd><a href="/">我手机里面也有这样一个号码存在</a></dd>
                    </dl>
                </ul>
            </div>

        </div>

    </aside>
    <script src="js/silder.js"></script>
    <div class="clear"></div>
    <!-- 清除浮动 -->
</div>
</body>
</html>
